package com.netease.c;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Vector;

public class j extends e
{
  private static final int g = 1;
  private static final int h = 6;
  private static final int i = 12;
  private static final Object[] j = new Object[0];
  Vector b = new Vector();
  Vector c = new Vector();
  Vector d = new Vector();
  Vector e = new Vector();
  Vector f = new Vector();

  private void a(Vector paramVector1, Vector paramVector2, int paramInt)
  {
    for (int k = 0; k < paramVector1.size(); k++)
    {
      p localp = (p)paramVector1.elementAt(k);
      if (localp != null)
        localp.b(paramInt);
      paramVector2.add(paramVector1.elementAt(k));
    }
    paramVector1.clear();
  }

  private void a(Vector paramVector1, Vector paramVector2, int paramInt1, boolean paramBoolean, int paramInt2)
  {
    if (paramVector1 == paramVector2);
    while (true)
    {
      return;
      LinkedList localLinkedList = new LinkedList();
      for (int k = -1 + paramVector1.size(); k >= 0; k--)
      {
        p localp = (p)paramVector1.elementAt(k);
        if ((localp == null) || (localp.g() != paramInt1))
          continue;
        paramVector1.remove(k);
        localp.b(paramInt2);
        localLinkedList.add(localp);
      }
      if (localLinkedList.size() <= 0)
        continue;
      Collections.reverse(localLinkedList);
      paramVector2.addAll(0, localLinkedList);
    }
  }

  private void a(Vector paramVector1, Vector paramVector2, p paramp)
  {
    for (int k = -1 + paramVector1.size(); k >= 0; k--)
    {
      p localp = (p)paramVector1.elementAt(k);
      if (!localp.a(paramp))
        continue;
      paramVector1.remove(k);
      paramVector2.add(localp);
    }
  }

  private void a(Vector paramVector1, Vector paramVector2, Class paramClass)
  {
    for (int k = -1 + paramVector1.size(); k >= 0; k--)
    {
      p localp = (p)paramVector1.elementAt(k);
      if (!paramClass.isInstance(localp))
        continue;
      paramVector1.remove(k);
      paramVector2.add(localp);
    }
  }

  private Vector c(int paramInt)
  {
    Vector localVector;
    switch (paramInt & 0xFF)
    {
    case 1:
    default:
      localVector = this.e;
    case 4:
    case 3:
    case 2:
    case 0:
    }
    while (true)
    {
      return localVector;
      localVector = this.b;
      continue;
      localVector = this.c;
      continue;
      localVector = this.d;
      continue;
      localVector = this.f;
    }
  }

  public Vector a(Class paramClass)
  {
    Vector localVector = null;
    if (paramClass != null)
    {
      localVector = new Vector();
      synchronized (j)
      {
        a(this.b, localVector, paramClass);
        a(this.c, localVector, paramClass);
        a(this.d, localVector, paramClass);
        a(this.e, localVector, paramClass);
        a(this.f, localVector, paramClass);
      }
    }
    return localVector;
  }

  public Vector a(Vector paramVector, p paramp)
  {
    if (paramVector == null)
      paramVector = new Vector();
    if (paramp.e())
      synchronized (j)
      {
        a(this.b, paramVector, paramp);
        a(this.c, paramVector, paramp);
        a(this.d, paramVector, paramp);
        a(this.e, paramVector, paramp);
        a(this.f, paramVector, paramp);
      }
    return paramVector;
  }

  // ERROR //
  public void a(int paramInt1, int paramInt2)
  {
    // Byte code:
    //   0: iload_1
    //   1: ifge +4 -> 5
    //   4: return
    //   5: iload_2
    //   6: sipush 256
    //   9: iand
    //   10: ifeq +116 -> 126
    //   13: iconst_1
    //   14: istore_3
    //   15: iload_2
    //   16: sipush 255
    //   19: iand
    //   20: istore 4
    //   22: getstatic 25	com/netease/c/j:j	[Ljava/lang/Object;
    //   25: astore 5
    //   27: aload 5
    //   29: monitorenter
    //   30: aload_0
    //   31: iload 4
    //   33: invokespecial 115	com/netease/c/j:c	(I)Ljava/util/Vector;
    //   36: astore 7
    //   38: iload_3
    //   39: ifeq +92 -> 131
    //   42: aload_0
    //   43: aload_0
    //   44: getfield 41	com/netease/c/j:f	Ljava/util/Vector;
    //   47: aload 7
    //   49: iload_1
    //   50: iload_3
    //   51: iload 4
    //   53: invokespecial 117	com/netease/c/j:a	(Ljava/util/Vector;Ljava/util/Vector;IZI)V
    //   56: aload_0
    //   57: aload_0
    //   58: getfield 39	com/netease/c/j:e	Ljava/util/Vector;
    //   61: aload 7
    //   63: iload_1
    //   64: iload_3
    //   65: iload 4
    //   67: invokespecial 117	com/netease/c/j:a	(Ljava/util/Vector;Ljava/util/Vector;IZI)V
    //   70: aload_0
    //   71: aload_0
    //   72: getfield 37	com/netease/c/j:d	Ljava/util/Vector;
    //   75: aload 7
    //   77: iload_1
    //   78: iload_3
    //   79: iload 4
    //   81: invokespecial 117	com/netease/c/j:a	(Ljava/util/Vector;Ljava/util/Vector;IZI)V
    //   84: aload_0
    //   85: aload_0
    //   86: getfield 35	com/netease/c/j:c	Ljava/util/Vector;
    //   89: aload 7
    //   91: iload_1
    //   92: iload_3
    //   93: iload 4
    //   95: invokespecial 117	com/netease/c/j:a	(Ljava/util/Vector;Ljava/util/Vector;IZI)V
    //   98: aload_0
    //   99: aload_0
    //   100: getfield 33	com/netease/c/j:b	Ljava/util/Vector;
    //   103: aload 7
    //   105: iload_1
    //   106: iload_3
    //   107: iload 4
    //   109: invokespecial 117	com/netease/c/j:a	(Ljava/util/Vector;Ljava/util/Vector;IZI)V
    //   112: aload 5
    //   114: monitorexit
    //   115: goto -111 -> 4
    //   118: astore 6
    //   120: aload 5
    //   122: monitorexit
    //   123: aload 6
    //   125: athrow
    //   126: iconst_0
    //   127: istore_3
    //   128: goto -113 -> 15
    //   131: aload_0
    //   132: aload_0
    //   133: getfield 33	com/netease/c/j:b	Ljava/util/Vector;
    //   136: aload 7
    //   138: iload_1
    //   139: iload_3
    //   140: iload 4
    //   142: invokespecial 117	com/netease/c/j:a	(Ljava/util/Vector;Ljava/util/Vector;IZI)V
    //   145: aload_0
    //   146: aload_0
    //   147: getfield 35	com/netease/c/j:c	Ljava/util/Vector;
    //   150: aload 7
    //   152: iload_1
    //   153: iload_3
    //   154: iload 4
    //   156: invokespecial 117	com/netease/c/j:a	(Ljava/util/Vector;Ljava/util/Vector;IZI)V
    //   159: aload_0
    //   160: aload_0
    //   161: getfield 37	com/netease/c/j:d	Ljava/util/Vector;
    //   164: aload 7
    //   166: iload_1
    //   167: iload_3
    //   168: iload 4
    //   170: invokespecial 117	com/netease/c/j:a	(Ljava/util/Vector;Ljava/util/Vector;IZI)V
    //   173: aload_0
    //   174: aload_0
    //   175: getfield 39	com/netease/c/j:e	Ljava/util/Vector;
    //   178: aload 7
    //   180: iload_1
    //   181: iload_3
    //   182: iload 4
    //   184: invokespecial 117	com/netease/c/j:a	(Ljava/util/Vector;Ljava/util/Vector;IZI)V
    //   187: aload_0
    //   188: aload_0
    //   189: getfield 41	com/netease/c/j:f	Ljava/util/Vector;
    //   192: aload 7
    //   194: iload_1
    //   195: iload_3
    //   196: iload 4
    //   198: invokespecial 117	com/netease/c/j:a	(Ljava/util/Vector;Ljava/util/Vector;IZI)V
    //   201: goto -89 -> 112
    //
    // Exception table:
    //   from	to	target	type
    //   30	123	118	finally
    //   131	201	118	finally
  }

  public void a(p paramp)
  {
    a(paramp, 1);
  }

  // ERROR //
  public void a(p paramp, int paramInt)
  {
    // Byte code:
    //   0: iconst_0
    //   1: istore_3
    //   2: aload_1
    //   3: ifnonnull +4 -> 7
    //   6: return
    //   7: iload_2
    //   8: sipush 256
    //   11: iand
    //   12: ifeq +5 -> 17
    //   15: iconst_1
    //   16: istore_3
    //   17: iload_2
    //   18: sipush 255
    //   21: iand
    //   22: istore 4
    //   24: getstatic 25	com/netease/c/j:j	[Ljava/lang/Object;
    //   27: astore 5
    //   29: aload 5
    //   31: monitorenter
    //   32: iload 4
    //   34: tableswitch	default:+34 -> 68, 0:+151->185, 1:+34->68, 2:+123->157, 3:+95->129, 4:+67->101
    //   69: ifeq +144 -> 213
    //   72: aload_0
    //   73: getfield 39	com/netease/c/j:e	Ljava/util/Vector;
    //   76: aload_1
    //   77: iconst_0
    //   78: invokevirtual 125	java/util/Vector:insertElementAt	(Ljava/lang/Object;I)V
    //   81: getstatic 25	com/netease/c/j:j	[Ljava/lang/Object;
    //   84: invokevirtual 128	java/lang/Object:notifyAll	()V
    //   87: aload 5
    //   89: monitorexit
    //   90: goto -84 -> 6
    //   93: astore 7
    //   95: aload 5
    //   97: monitorexit
    //   98: aload 7
    //   100: athrow
    //   101: iload_3
    //   102: ifeq +15 -> 117
    //   105: aload_0
    //   106: getfield 33	com/netease/c/j:b	Ljava/util/Vector;
    //   109: aload_1
    //   110: iconst_0
    //   111: invokevirtual 125	java/util/Vector:insertElementAt	(Ljava/lang/Object;I)V
    //   114: goto -33 -> 81
    //   117: aload_0
    //   118: getfield 33	com/netease/c/j:b	Ljava/util/Vector;
    //   121: aload_1
    //   122: invokevirtual 60	java/util/Vector:add	(Ljava/lang/Object;)Z
    //   125: pop
    //   126: goto -45 -> 81
    //   129: iload_3
    //   130: ifeq +15 -> 145
    //   133: aload_0
    //   134: getfield 35	com/netease/c/j:c	Ljava/util/Vector;
    //   137: aload_1
    //   138: iconst_0
    //   139: invokevirtual 125	java/util/Vector:insertElementAt	(Ljava/lang/Object;I)V
    //   142: goto -61 -> 81
    //   145: aload_0
    //   146: getfield 35	com/netease/c/j:c	Ljava/util/Vector;
    //   149: aload_1
    //   150: invokevirtual 60	java/util/Vector:add	(Ljava/lang/Object;)Z
    //   153: pop
    //   154: goto -73 -> 81
    //   157: iload_3
    //   158: ifeq +15 -> 173
    //   161: aload_0
    //   162: getfield 35	com/netease/c/j:c	Ljava/util/Vector;
    //   165: aload_1
    //   166: iconst_0
    //   167: invokevirtual 125	java/util/Vector:insertElementAt	(Ljava/lang/Object;I)V
    //   170: goto -89 -> 81
    //   173: aload_0
    //   174: getfield 35	com/netease/c/j:c	Ljava/util/Vector;
    //   177: aload_1
    //   178: invokevirtual 60	java/util/Vector:add	(Ljava/lang/Object;)Z
    //   181: pop
    //   182: goto -101 -> 81
    //   185: iload_3
    //   186: ifeq +15 -> 201
    //   189: aload_0
    //   190: getfield 41	com/netease/c/j:f	Ljava/util/Vector;
    //   193: aload_1
    //   194: iconst_0
    //   195: invokevirtual 125	java/util/Vector:insertElementAt	(Ljava/lang/Object;I)V
    //   198: goto -117 -> 81
    //   201: aload_0
    //   202: getfield 41	com/netease/c/j:f	Ljava/util/Vector;
    //   205: aload_1
    //   206: invokevirtual 60	java/util/Vector:add	(Ljava/lang/Object;)Z
    //   209: pop
    //   210: goto -129 -> 81
    //   213: aload_0
    //   214: getfield 39	com/netease/c/j:e	Ljava/util/Vector;
    //   217: aload_1
    //   218: invokevirtual 60	java/util/Vector:add	(Ljava/lang/Object;)Z
    //   221: pop
    //   222: goto -141 -> 81
    //
    // Exception table:
    //   from	to	target	type
    //   72	98	93	finally
    //   105	222	93	finally
  }

  // ERROR //
  public p b(int paramInt)
  {
    // Byte code:
    //   0: getstatic 25	com/netease/c/j:j	[Ljava/lang/Object;
    //   3: astore_2
    //   4: aload_2
    //   5: monitorenter
    //   6: iload_1
    //   7: iflt +205 -> 212
    //   10: iload_1
    //   11: aload_0
    //   12: getfield 33	com/netease/c/j:b	Ljava/util/Vector;
    //   15: invokevirtual 47	java/util/Vector:size	()I
    //   18: if_icmpge +20 -> 38
    //   21: aload_0
    //   22: getfield 33	com/netease/c/j:b	Ljava/util/Vector;
    //   25: iload_1
    //   26: invokevirtual 72	java/util/Vector:remove	(I)Ljava/lang/Object;
    //   29: checkcast 53	com/netease/c/p
    //   32: astore_3
    //   33: aload_2
    //   34: monitorexit
    //   35: goto +181 -> 216
    //   38: iload_1
    //   39: aload_0
    //   40: getfield 33	com/netease/c/j:b	Ljava/util/Vector;
    //   43: invokevirtual 47	java/util/Vector:size	()I
    //   46: isub
    //   47: istore 5
    //   49: iload 5
    //   51: aload_0
    //   52: getfield 35	com/netease/c/j:c	Ljava/util/Vector;
    //   55: invokevirtual 47	java/util/Vector:size	()I
    //   58: if_icmpge +28 -> 86
    //   61: aload_0
    //   62: getfield 35	com/netease/c/j:c	Ljava/util/Vector;
    //   65: iload 5
    //   67: invokevirtual 72	java/util/Vector:remove	(I)Ljava/lang/Object;
    //   70: checkcast 53	com/netease/c/p
    //   73: astore_3
    //   74: aload_2
    //   75: monitorexit
    //   76: goto +140 -> 216
    //   79: astore 4
    //   81: aload_2
    //   82: monitorexit
    //   83: aload 4
    //   85: athrow
    //   86: iload 5
    //   88: aload_0
    //   89: getfield 35	com/netease/c/j:c	Ljava/util/Vector;
    //   92: invokevirtual 47	java/util/Vector:size	()I
    //   95: isub
    //   96: istore 6
    //   98: iload 6
    //   100: aload_0
    //   101: getfield 37	com/netease/c/j:d	Ljava/util/Vector;
    //   104: invokevirtual 47	java/util/Vector:size	()I
    //   107: if_icmpge +21 -> 128
    //   110: aload_0
    //   111: getfield 37	com/netease/c/j:d	Ljava/util/Vector;
    //   114: iload 6
    //   116: invokevirtual 72	java/util/Vector:remove	(I)Ljava/lang/Object;
    //   119: checkcast 53	com/netease/c/p
    //   122: astore_3
    //   123: aload_2
    //   124: monitorexit
    //   125: goto +91 -> 216
    //   128: iload 6
    //   130: aload_0
    //   131: getfield 37	com/netease/c/j:d	Ljava/util/Vector;
    //   134: invokevirtual 47	java/util/Vector:size	()I
    //   137: isub
    //   138: istore 7
    //   140: iload 7
    //   142: aload_0
    //   143: getfield 39	com/netease/c/j:e	Ljava/util/Vector;
    //   146: invokevirtual 47	java/util/Vector:size	()I
    //   149: if_icmpge +21 -> 170
    //   152: aload_0
    //   153: getfield 39	com/netease/c/j:e	Ljava/util/Vector;
    //   156: iload 7
    //   158: invokevirtual 72	java/util/Vector:remove	(I)Ljava/lang/Object;
    //   161: checkcast 53	com/netease/c/p
    //   164: astore_3
    //   165: aload_2
    //   166: monitorexit
    //   167: goto +49 -> 216
    //   170: iload 7
    //   172: aload_0
    //   173: getfield 39	com/netease/c/j:e	Ljava/util/Vector;
    //   176: invokevirtual 47	java/util/Vector:size	()I
    //   179: isub
    //   180: istore 8
    //   182: iload 8
    //   184: aload_0
    //   185: getfield 41	com/netease/c/j:f	Ljava/util/Vector;
    //   188: invokevirtual 47	java/util/Vector:size	()I
    //   191: if_icmpge +21 -> 212
    //   194: aload_0
    //   195: getfield 41	com/netease/c/j:f	Ljava/util/Vector;
    //   198: iload 8
    //   200: invokevirtual 72	java/util/Vector:remove	(I)Ljava/lang/Object;
    //   203: checkcast 53	com/netease/c/p
    //   206: astore_3
    //   207: aload_2
    //   208: monitorexit
    //   209: goto +7 -> 216
    //   212: aconst_null
    //   213: astore_3
    //   214: aload_2
    //   215: monitorexit
    //   216: aload_3
    //   217: areturn
    //
    // Exception table:
    //   from	to	target	type
    //   10	83	79	finally
    //   86	216	79	finally
  }

  public boolean b(p paramp)
  {
    int k = 0;
    if (paramp == null)
      return k;
    while (true)
    {
      synchronized (j)
      {
        if ((!this.b.remove(paramp)) && (!this.c.remove(paramp)) && (!this.d.remove(paramp)) && (!this.e.remove(paramp)))
          if (!this.f.remove(paramp))
            continue;
      }
      k = 1;
    }
  }

  public Vector c(p paramp)
  {
    return a(new Vector(), paramp);
  }

  public void f()
  {
    synchronized (j)
    {
      this.b.clear();
      this.c.clear();
      this.d.clear();
      this.e.clear();
      this.f.clear();
      j.notifyAll();
      return;
    }
  }

  public p h()
  {
    while (true)
    {
      p localp;
      synchronized (j)
      {
        if ((this.e.size() > 0) || (this.f.size() > 0) || (this.d.size() > 0) || (this.c.size() > 0) || (this.b.size() > 0))
        {
          localp = i();
          return localp;
        }
      }
      try
      {
        j.wait();
        label71: localp = i();
        monitorexit;
        continue;
        localObject = finally;
        monitorexit;
        throw localObject;
      }
      catch (Exception localException)
      {
        break label71;
      }
    }
  }

  public p i()
  {
    synchronized (j)
    {
      p localp = b(0);
      return localp;
    }
  }

  public void j()
  {
    synchronized (j)
    {
      a(this.f, this.e, 1);
      a(this.b, this.f, 0);
      a(this.c, this.f, 0);
      a(this.d, this.f, 0);
      a(this.e, this.f, 0);
      return;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.c.j
 * JD-Core Version:    0.6.0
 */